package com.dayuanit.dy17.atm.mapper;

import com.dayuanit.dy17.atm.domain.FlowDomain;
import com.dayuanit.dy17.atm.entity.Flow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Flow record);

    int insertSelective(Flow record);

    Flow selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Flow record);

    int updateByPrimaryKey(Flow record);

    List<FlowDomain> listFlowByCardId(@Param("cardId") Long cardId,
                                      @Param("offset") Integer offset,
                                      @Param("pageSize") Integer pageSize);

    int countFlowByCardId(Long cardId);

    List<FlowDomain> listFlowByUserId(Long userId);

}